<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <meta name="description" content="API docs for the Point class from the dart:ui library, for the Dart programming language.">
  <title>Point class - dart:ui library - Dart API</title>
  <!-- required because all the links are pseudo-absolute -->
  <base href="..">

  <link rel='stylesheet' href='https://fonts.googleapis.com/css?family=Source+Code+Pro|Roboto:500,400italic,300,400' type='text/css'>
  <link rel="stylesheet" href="static-assets/prettify.css">
  <link rel="stylesheet" href="static-assets/css/bootstrap.min.css">
  <link rel="stylesheet" href="static-assets/styles.css">
  <link rel="icon" href="static-assets/favicon.png">

  <!-- Do not remove placeholder -->
  <!-- Header Placeholder -->
</head>

<body>

<div id="overlay-under-drawer"></div>

<header class="container-fluid" id="title">
  <nav class="navbar navbar-fixed-top">
    <div class="container">
      <div class="row">
        <div class="col-sm-12 contents">
          <button id="sidenav-left-toggle" type="button">&nbsp;</button>
          <ol class="breadcrumbs gt-separated hidden-xs">
            <li><a href="index.html">flutter_sprites</a></li>
            <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
            <li class="self-crumb">Point</li>
          </ol>
          <div class="self-name">Point</div>
          <form class="search navbar-right" role="search">
            <input type="text" id="search-box" autocomplete="off" disabled class="form-control typeahead" placeholder="Loading search...">
          </form>
        </div> <!-- /col -->
      </div> <!-- /row -->
    </div> <!-- /container -->
  </nav>

  <div class="container masthead">
    <div class="row">
      <div class="col-sm-12 contents">
        <ol class="breadcrumbs gt-separated visible-xs">
          <li><a href="index.html">flutter_sprites</a></li>
          <li><a href="dart-ui/dart-ui-library.html">dart:ui</a></li>
          <li class="self-crumb">Point</li>
        </ol>
        <div class="title-description">
          <h1 class="title">
            <span class="kind">class</span> Point
          </h1>
        </div>
        <ul class="subnav">
          <li><a href="dart-ui/Point-class.html#constants">Constants</a></li>
          <li><a href="dart-ui/Point-class.html#static-methods">Static Methods</a></li>
          <li><a href="dart-ui/Point-class.html#instance-properties">Properties</a></li>
          <li><a href="dart-ui/Point-class.html#constructors">Constructors</a></li>
          <li><a href="dart-ui/Point-class.html#operators">Operators</a></li>
          <li><a href="dart-ui/Point-class.html#instance-methods">Methods</a></li>
        </ul>
      </div> <!-- /col -->
    </div> <!-- /row -->
  </div> <!-- /container -->

</header>

<div class="container body">
  <div class="row">

  <div class="col-xs-6 col-sm-3 col-md-2 sidebar sidebar-offcanvas-left">
    <h5><a href="index.html">flutter_sprites</a></h5>
    <h5><a href="dart-ui/dart-ui-library.html">dart:ui</a></h5>

    <ol>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#typedefs">Typedefs</a></li>
      <li><a href="dart-ui/FrameCallback.html">FrameCallback</a></li>
      <li><a href="dart-ui/ImageDecoderCallback.html">ImageDecoderCallback</a></li>
      <li><a href="dart-ui/PlatformMessageCallback.html">PlatformMessageCallback</a></li>
      <li><a href="dart-ui/PlatformMessageResponseCallback.html">PlatformMessageResponseCallback</a></li>
      <li><a href="dart-ui/PointerDataPacketCallback.html">PointerDataPacketCallback</a></li>
      <li><a href="dart-ui/SemanticsActionCallback.html">SemanticsActionCallback</a></li>
      <li><a href="dart-ui/VoidCallback.html">VoidCallback</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#properties">Properties</a></li>
      <li><a href="dart-ui/window.html">window</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#functions">Functions</a></li>
      <li><a href="dart-ui/decodeImageFromList.html">decodeImageFromList</a></li>
      <li><a href="dart-ui/hashList.html">hashList</a></li>
      <li><a href="dart-ui/hashValues.html">hashValues</a></li>
      <li><a href="dart-ui/lerpDouble.html">lerpDouble</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#enums">Enums</a></li>
      <li><a href="dart-ui/AppLifecycleState-class.html">AppLifecycleState</a></li>
      <li><a href="dart-ui/BlurStyle-class.html">BlurStyle</a></li>
      <li><a href="dart-ui/FilterQuality-class.html">FilterQuality</a></li>
      <li><a href="dart-ui/FontStyle-class.html">FontStyle</a></li>
      <li><a href="dart-ui/PaintingStyle-class.html">PaintingStyle</a></li>
      <li><a href="dart-ui/PathFillType-class.html">PathFillType</a></li>
      <li><a href="dart-ui/PointerChange-class.html">PointerChange</a></li>
      <li><a href="dart-ui/PointerDeviceKind-class.html">PointerDeviceKind</a></li>
      <li><a href="dart-ui/PointMode-class.html">PointMode</a></li>
      <li><a href="dart-ui/StrokeCap-class.html">StrokeCap</a></li>
      <li><a href="dart-ui/TextAffinity-class.html">TextAffinity</a></li>
      <li><a href="dart-ui/TextAlign-class.html">TextAlign</a></li>
      <li><a href="dart-ui/TextBaseline-class.html">TextBaseline</a></li>
      <li><a href="dart-ui/TextDecorationStyle-class.html">TextDecorationStyle</a></li>
      <li><a href="dart-ui/TextDirection-class.html">TextDirection</a></li>
      <li><a href="dart-ui/TileMode-class.html">TileMode</a></li>
      <li><a href="dart-ui/TransferMode-class.html">TransferMode</a></li>
      <li><a href="dart-ui/VertexMode-class.html">VertexMode</a></li>
    
      <li class="section-title"><a href="dart-ui/dart-ui-library.html#classes">Classes</a></li>
      <li><a href="dart-ui/Canvas-class.html">Canvas</a></li>
      <li><a href="dart-ui/Color-class.html">Color</a></li>
      <li><a href="dart-ui/ColorFilter-class.html">ColorFilter</a></li>
      <li><a href="dart-ui/FontWeight-class.html">FontWeight</a></li>
      <li><a href="dart-ui/Gradient-class.html">Gradient</a></li>
      <li><a href="dart-ui/Image-class.html">Image</a></li>
      <li><a href="dart-ui/ImageFilter-class.html">ImageFilter</a></li>
      <li><a href="dart-ui/ImageShader-class.html">ImageShader</a></li>
      <li><a href="dart-ui/Locale-class.html">Locale</a></li>
      <li><a href="dart-ui/MaskFilter-class.html">MaskFilter</a></li>
      <li><a href="dart-ui/Offset-class.html">Offset</a></li>
      <li><a href="dart-ui/OffsetBase-class.html">OffsetBase</a></li>
      <li><a href="dart-ui/Paint-class.html">Paint</a></li>
      <li><a href="dart-ui/Paragraph-class.html">Paragraph</a></li>
      <li><a href="dart-ui/ParagraphBuilder-class.html">ParagraphBuilder</a></li>
      <li><a href="dart-ui/ParagraphConstraints-class.html">ParagraphConstraints</a></li>
      <li><a href="dart-ui/ParagraphStyle-class.html">ParagraphStyle</a></li>
      <li><a href="dart-ui/Path-class.html">Path</a></li>
      <li><a href="dart-ui/Picture-class.html">Picture</a></li>
      <li><a href="dart-ui/PictureRecorder-class.html">PictureRecorder</a></li>
      <li><a href="dart-ui/Point-class.html">Point</a></li>
      <li><a href="dart-ui/PointerData-class.html">PointerData</a></li>
      <li><a href="dart-ui/PointerDataPacket-class.html">PointerDataPacket</a></li>
      <li><a href="dart-ui/Radius-class.html">Radius</a></li>
      <li><a href="dart-ui/Rect-class.html">Rect</a></li>
      <li><a href="dart-ui/RRect-class.html">RRect</a></li>
      <li><a href="dart-ui/RSTransform-class.html">RSTransform</a></li>
      <li><a href="dart-ui/Scene-class.html">Scene</a></li>
      <li><a href="dart-ui/SceneBuilder-class.html">SceneBuilder</a></li>
      <li><a href="dart-ui/SemanticsAction-class.html">SemanticsAction</a></li>
      <li><a href="dart-ui/SemanticsFlags-class.html">SemanticsFlags</a></li>
      <li><a href="dart-ui/SemanticsUpdate-class.html">SemanticsUpdate</a></li>
      <li><a href="dart-ui/SemanticsUpdateBuilder-class.html">SemanticsUpdateBuilder</a></li>
      <li><a href="dart-ui/Shader-class.html">Shader</a></li>
      <li><a href="dart-ui/Size-class.html">Size</a></li>
      <li><a href="dart-ui/TextBox-class.html">TextBox</a></li>
      <li><a href="dart-ui/TextDecoration-class.html">TextDecoration</a></li>
      <li><a href="dart-ui/TextPosition-class.html">TextPosition</a></li>
      <li><a href="dart-ui/TextStyle-class.html">TextStyle</a></li>
      <li><a href="dart-ui/Window-class.html">Window</a></li>
      <li><a href="dart-ui/WindowPadding-class.html">WindowPadding</a></li>
    
    </ol>
  </div>

  <div class="col-xs-12 col-sm-9 col-md-8 main-content">

    <section class="desc markdown">
      <p>An immutable 2D floating-point x,y coordinate pair.</p>
<p>A Point represents a specific position in Cartesian space.</p>
<p>Subtracting a point from another returns the <a href="dart-ui/Offset-class.html">Offset</a> that represents the
vector between the two points.</p>
    </section>
    

    <section class="summary offset-anchor" id="constants">
      <h2>Constants</h2>

      <dl class="properties">
        <dt id="origin" class="constant">
          <span class="name "><a href="dart-ui/Point/origin-constant.html">origin</a></span>
          <span class="signature">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
        </dt>
        <dd>
          <p>The point at the origin, (0, 0).</p>
          <div>
            <span class="signature"><code>const <a href="dart-ui/Point-class.html">Point</a>(0.0, 0.0)</code></span>
          </div>
        </dd>
      </dl>
    </section>


    <section class="summary offset-anchor" id="static-methods">
      <h2>Static Methods</h2>
      <dl class="callables">
        <dt id="lerp" class="callable">
          <span class="name"><a href="dart-ui/Point/lerp.html">lerp</a></span><span class="signature">(<wbr><span class="parameter" id="lerp-param-a"><span class="type-annotation"><a href="dart-ui/Point-class.html">Point</a></span> <span class="parameter-name">a</span>, </span> <span class="parameter" id="lerp-param-b"><span class="type-annotation"><a href="dart-ui/Point-class.html">Point</a></span> <span class="parameter-name">b</span>, </span> <span class="parameter" id="lerp-param-t"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">t</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Linearly interpolate between two points.</p>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="constructors">
      <h2>Constructors</h2>

      <dl class="constructor-summary-list">
        <dt id="Point" class="callable">
          <span class="name"><a href="dart-ui/Point/Point.html">Point</a></span><span class="signature">(<span class="parameter" id="-param-x"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">x</span>, </span> <span class="parameter" id="-param-y"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">y</span></span>)</span>
        </dt>
        <dd>
          <p>Creates a point. The first argument sets <a href="dart-ui/Point/x.html">x</a>, the horizontal component,
and the second sets <a href="dart-ui/Point/y.html">y</a>, the vertical component.</p>
          <div class="constructor-modifier features">const</div>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-properties">
      <h2>Properties</h2>

      <dl class="properties">
        <dt id="hashCode" class="property">
          <span class="name"><a href="dart-ui/Point/hashCode.html">hashCode</a></span>
          <span class="signature">&#8594; <a href="dart-core/int-class.html">int</a></span>
        </dt>
        <dd>
          <p></p>
          <div class="features">
    read-only
  </div>
</dd>
        <dt id="runtimeType" class="property inherited">
          <span class="name"><a href="dart-core/Object/runtimeType.html">runtimeType</a></span>
          <span class="signature">&#8594; <a href="dart-core/Type-class.html">Type</a></span>
        </dt>
        <dd class="inherited">
          <p>A representation of the runtime type of the object.</p>
          <div class="features">
    read-only, inherited
  </div>
</dd>
        <dt id="x" class="property">
          <span class="name"><a href="dart-ui/Point/x.html">x</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          <p>The horizontal component of the point.</p>
          <div class="features">
    read-only
  </div>
</dd>
        <dt id="y" class="property">
          <span class="name"><a href="dart-ui/Point/y.html">y</a></span>
          <span class="signature">&#8594; <a href="dart-core/double-class.html">double</a></span>
        </dt>
        <dd>
          <p>The vertical component of the point.</p>
          <div class="features">
    read-only
  </div>
</dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="operators">
      <h2>Operators</h2>
      <dl class="callables">
        <dt id="operator %" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_modulo.html">operator %</a></span><span class="signature">(<wbr><span class="parameter" id="%-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Modulo (remainder) operator. Returns a point whose coordinates are the
remainder of the coordinates of the left-hand-side operand (a point)
divided by the scalar right-hand-side operand (a double).</p>
        </dd>
        <dt id="operator &amp;" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_bitwise_and.html">operator &</a></span><span class="signature">(<wbr><span class="parameter" id="&-param-other"><span class="type-annotation"><a href="dart-ui/Size-class.html">Size</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Rect-class.html">Rect</a></span>
          </span>
        </dt>
        <dd>
          <p>Rectangle constructor operator. Combines a point and a <a href="dart-ui/Size-class.html">Size</a> to form a
<a href="dart-ui/Rect-class.html">Rect</a> whose top-left coordinate is this point, the left-hand-side
operand, and whose size is the right-hand-side operand.</p>
        </dd>
        <dt id="operator *" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_multiply.html">operator *</a></span><span class="signature">(<wbr><span class="parameter" id="*-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Multiplication operator. Returns a point whose coordinates are the
coordinates of the left-hand-side operand (a Point) multiplied by the
scalar right-hand-side operand (a double).</p>
        </dd>
        <dt id="operator +" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_plus.html">operator +</a></span><span class="signature">(<wbr><span class="parameter" id="+-param-other"><span class="type-annotation"><a href="dart-ui/Offset-class.html">Offset</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Binary addition operator. Returns a point that is this point (the
left-hand-side operand) plus a vector <a href="dart-ui/Offset-class.html">Offset</a> (the right-hand-side
operand).</p>
        </dd>
        <dt id="operator -" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_minus.html">operator -</a></span><span class="signature">(<wbr><span class="parameter" id="--param-other"><span class="type-annotation"><a href="dart-ui/Point-class.html">Point</a></span> <span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          <p>Binary subtraction operator. Returns an <a href="dart-ui/Offset-class.html">Offset</a> representing the
direction and distance from the other point (the right-hand-side operand)
to this point (the left-hand-side operand).</p>
        </dd>
        <dt id="operator /" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_divide.html">operator /</a></span><span class="signature">(<wbr><span class="parameter" id="/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Division operator. Returns a point whose coordinates are the
coordinates of the left-hand-side operand (a point) divided by the
scalar right-hand-side operand (a double).</p>
        </dd>
        <dt id="operator ==" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_equals.html">operator ==</a></span><span class="signature">(<wbr><span class="parameter" id="==-param-other"><span class="parameter-name">other</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-core/bool-class.html">bool</a></span>
          </span>
        </dt>
        <dd>
          <p>The equality operator.</p>
        </dd>
        <dt id="operator unary-" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_unary_minus.html">operator unary-</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Unary negation operator. Returns a point with the coordinates negated.</p>
        </dd>
        <dt id="operator ~/" class="callable">
          <span class="name"><a href="dart-ui/Point/operator_truncate_divide.html">operator ~/</a></span><span class="signature">(<wbr><span class="parameter" id="~/-param-operand"><span class="type-annotation"><a href="dart-core/double-class.html">double</a></span> <span class="parameter-name">operand</span></span>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Point-class.html">Point</a></span>
          </span>
        </dt>
        <dd>
          <p>Integer (truncating) division operator. Returns a point whose
coordinates are the coordinates of the left-hand-side operand (a point)
divided by the scalar right-hand-side operand (a double), rounded towards
zero.</p>
        </dd>
      </dl>
    </section>

    <section class="summary offset-anchor" id="instance-methods">
      <h2>Methods</h2>
      <dl class="callables">
        <dt id="noSuchMethod" class="callable inherited">
          <span class="name"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></span><span class="signature">(<wbr><span class="parameter" id="noSuchMethod-param-invocation"><span class="type-annotation"><a href="dart-core/Invocation-class.html">Invocation</a></span> <span class="parameter-name">invocation</span></span>)
            <span class="returntype parameter">&#8594; dynamic</span>
          </span>
        </dt>
        <dd class="inherited">
          <p>Invoked when a non-existent method or property is accessed.</p>
          <div class="features">inherited</div>
        </dd>
        <dt id="toOffset" class="callable">
          <span class="name"><a href="dart-ui/Point/toOffset.html">toOffset</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-ui/Offset-class.html">Offset</a></span>
          </span>
        </dt>
        <dd>
          <p>Converts this point to an <a href="dart-ui/Offset-class.html">Offset</a> with the same coordinates.</p>
        </dd>
        <dt id="toString" class="callable">
          <span class="name"><a href="dart-ui/Point/toString.html">toString</a></span><span class="signature">(<wbr>)
            <span class="returntype parameter">&#8594; <a href="dart-core/String-class.html">String</a></span>
          </span>
        </dt>
        <dd>
          <p>Returns a string representation of this object.</p>
        </dd>
      </dl>
    </section>

  </div> <!-- /.main-content -->

  <div class="col-xs-6 col-sm-6 col-md-2 sidebar sidebar-offcanvas-right">
    <h5>Point</h5>
    <ol>
      <li class="section-title"><a href="dart-ui/Point-class.html#constants">Constants</a></li>
      <li><a href="dart-ui/Point/origin-constant.html">origin</a></li>
    
    
      <li class="section-title"><a href="dart-ui/Point-class.html#static-methods">Static methods</a></li>
      <li><a href="dart-ui/Point/lerp.html">lerp</a></li>
    
      <li class="section-title"><a href="dart-ui/Point-class.html#constructors">Constructors</a></li>
      <li><a href="dart-ui/Point/Point.html">Point</a></li>
    
      <li class="section-title">
        <a href="dart-ui/Point-class.html#instance-properties">Properties</a>
      </li>
      <li><a href="dart-ui/Point/hashCode.html">hashCode</a></li>
      <li class="inherited"><a href="dart-core/Object/runtimeType.html">runtimeType</a></li>
      <li><a href="dart-ui/Point/x.html">x</a></li>
      <li><a href="dart-ui/Point/y.html">y</a></li>
    
      <li class="section-title"><a href="dart-ui/Point-class.html#operators">Operators</a></li>
      <li><a href="dart-ui/Point/operator_modulo.html">operator %</a></li>
      <li><a href="dart-ui/Point/operator_bitwise_and.html">operator &</a></li>
      <li><a href="dart-ui/Point/operator_multiply.html">operator *</a></li>
      <li><a href="dart-ui/Point/operator_plus.html">operator +</a></li>
      <li><a href="dart-ui/Point/operator_minus.html">operator -</a></li>
      <li><a href="dart-ui/Point/operator_divide.html">operator /</a></li>
      <li><a href="dart-ui/Point/operator_equals.html">operator ==</a></li>
      <li><a href="dart-ui/Point/operator_unary_minus.html">operator unary-</a></li>
      <li><a href="dart-ui/Point/operator_truncate_divide.html">operator ~/</a></li>
    
      <li class="section-title"><a href="dart-ui/Point-class.html#instance-methods">Methods</a></li>
      <li class="inherited"><a href="dart-core/Object/noSuchMethod.html">noSuchMethod</a></li>
      <li><a href="dart-ui/Point/toOffset.html">toOffset</a></li>
      <li><a href="dart-ui/Point/toString.html">toString</a></li>
    </ol>
  </div><!--/.sidebar-offcanvas-->

</div> <!-- row -->
</div> <!-- container -->

<footer>
  <div class="container-fluid">
    <div class="container">
      <p class="text-center">
        <span class="no-break">
          flutter_sprites 0.0.15
        </span>
        &bull;
        <span class="no-break">
          <a href="https://www.dartlang.org">
            <img src="static-assets/favicon.png" alt="Dart" title="Dart" width="16" height="16">
          </a>
        </span>
        &bull;
        <span class="copyright no-break">
          <a href="http://creativecommons.org/licenses/by-sa/4.0/">cc license</a>
        </span>
      </p>
    </div>
  </div>
</footer>

<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="static-assets/typeahead.bundle.min.js"></script>
<script src="static-assets/prettify.js"></script>
<script src="static-assets/URI.js"></script>
<script src="static-assets/script.js"></script>
<!-- Do not remove placeholder -->
<!-- Footer Placeholder -->

</body>

</html>
